package cn.bugstack.mybatis.transaction;

import java.sql.Connection;
import java.sql.SQLException;
/**
 * @author wcc
 * @description 事务管理、管理连接
 * @create
 */

public interface Transaction {
    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;

}
